import 'package:flutter_baselib/lib.dart';

///网络请求响应基类
abstract class HttpResultBaseBean {
  ///响应码
  String code = HttpCode.defaultCode;

  ///错误提示
  String message;

  HttpResultBaseBean({this.code, this.message});

  ///是否请求成功
  bool isSuccess() {
    return HttpCode.success == code;
  }
}
